A Symbolic Labelled Transition System for Coinductive Subtyping of Fµ< Types

نویسنده

  • Alan Jeffrey
چکیده

F is a typed λ-calculus with subtyping and bounded polymorphism. Typechecking for F is known to be undecidable, because the subtyping relation on types is undecidable. Fμ is an extension of F with recursive types. In this paper, we show how symbolic labelled transition system techniques from concurrency theory can be used to reason about subtyping for Fμ . We provide a symbolic labelled transition system for Fμ types, together with an an appropriate notion of simulation, which coincides with the existing coinductive definition of subtyping. We then provide a ‘simulation up to’ technique for proving subtyping, for which there is a simple model checking algorithm. The algorithm is more powerful than the usual one for F , for example it terminates on Ghelli’s canonical example of nontermination.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

On sound and complete axiomatization of coinductive subtyping for object-oriented languages

Coinductive abstract compilation is a novel technique, which has been recently introduced for defining precise type systems for objectoriented languages. In this approach, type inference consists in translating the program to be analyzed into a Horn formula f , and in resolving a certain goal w.r.t. the coinductive (that is, the greatest) Herbrand model of f . Type systems defined in this way a...

متن کامل

Coinductive subtyping for abstract compilation of object-oriented languages into Horn formulas

In recent work we have shown how it is possible to define very precise type systems for objectoriented languages by abstractly compiling a program into a Horn formula f . Then type inference amounts to resolving a certain goal w.r.t. the coinductive (that is, the greatest) Herbrand model of f . Type systems defined in this way are idealized, since in the most interesting instantiations both the...

متن کامل

Semantic subtyping between coinductive mutable record types with unions and intersections

Semantic subtyping between coinductive record types supports accurate type analysis of object-oriented languages, by introducing Boolean type constructors and modeling cyclic objects. In previous work, a sound and complete algorithm for semantic subtyping has been proposed, but only for coinductive immutable record types with unions. In this work we address the issue of extending the previous r...

متن کامل

Subtyping-Based Type-Checking for System F with Induction and Coinduction

We present a type system with subtyping for a strongly normalizing, Curry-style language. Our type constructors include sum and product types, universal and existential quantifiers, inductive and coinductive types. Soundness and strong normalization are shown semantically by constructing a realizability model. We argue that the system is suitable for practical use based on our experience with a...

متن کامل

Subtyping and Inheritance for Categorical

We extend Hagino's categorical datatypes with subtyping and a limited form of inheritance. The view of objects as coalgebras provides the inspiration for subtyping and inheritance for coalgebraic (or coinductive) types. Exploiting the duality between coalgebras and algebras then yields notions of subtyping and inheritance for algebraic (or inductive) types.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2001